10. Flexbox
1. Display Flex (i.e flex)
2. Flex Direction (i.e flex-col)
3. Justify Content (i.e justify-xyz) [main axis pe apply hota hai]
justify-start
justify-end
justify-center
justify-between
justify-around
justify-evenly
4. Align Items (i.e items-xyz) [cross axis pe apply hota hai]
items-start
items-center
items-end
items-baseline
items-stretch
5. Order (by default, order is 0 for all elements) [jitna bada order
utna bad me ayga]
- 01
- 02 (order-7)
- 03
- 04 (order-3)
- 05
6. Flex Grow and shrink (i.e flex-xyz)
-
01 (flex-none)
-
02 (flex-initial)
-
03(flex-auto)
- 04 (flex-1)
- 05
- 06
- 07
-
flex-none:
prevents from growing or shrinking
-
flex-initial:
shrink but not grow, taking into account its initial
size
-
flex-auto:
grow and shrink, taking into account its initial size
-
flex-1:
grow and shrink as needed, ignoring its initial size